﻿#pragma once

#include <vector>
#include "refprop1.h"
// CComponentDlg 对话框

class CComponentDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CComponentDlg)

public:
	CComponentDlg(char _components[ncmax][refpropcharlength], long _ncomp = 0,CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CComponentDlg();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_COMPONENT_DIALOG };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedAddButton();
	afx_msg void OnBnClickedRemoveButton();
	std::vector<int> nSels;
	char components[ncmax][refpropcharlength];
	long ncomp;
	bool isModified;
};
